package com.jeecms.wicool.dao.product;

import com.jeecms.cms.entity.main.CmsUser;
import com.jeecms.common.hibernate3.Updater;
import com.jeecms.common.page.Pagination;
import com.jeecms.wicool.entity.product.Product;

import java.util.List;

/**
 * 商品DAO接口
 */
public interface ProductDao {
    public Pagination getPage(Integer productCateId, String productName,
                              int pageNo, int pageSize, CmsUser user);

    public Pagination getPageForVip(Integer productCateId, String productName,
            int pageNo, int pageSize, CmsUser user);
    
    public Product findById(Integer id);

    public Product updateByUpdater(Updater<Product> updater);

    public Product save(Product bean);

    public Product deleteById(Integer id);

    public Integer getMaxItemNo();

    public List<Product> getAll(Integer productCateId);

}